from django.urls import path
from Admins.views import *
from rest_framework.routers import SimpleRouter
from rest_framework_simplejwt.views import TokenObtainSlidingView
from rest_framework_simplejwt.views import TokenRefreshView, TokenVerifyView
urlpatterns = [
    # 登录、注册、登出
    path('login/', LoginView.as_view()),
    path('register/', register),
    path('logout/', LogoutView.as_view()),
    # 刷新token
    path('token/refesh/', TokenRefreshView.as_view()),
    # 校验token
    path('token/verify/', TokenVerifyView.as_view()),
]